package com.whisperarts.financer.app.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtils {

	static SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy HH:mm");
	
	public static String dateToString(Date date) {
		return sdf.format( date );
	}

	public static String dateToString(Calendar calendar) {
		return sdf.format(calendar.getTime());
	}
}
